package com.csun.cmny.provider.model.vo.propertyManagement;


import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import javax.persistence.Column;
import java.util.Date;

@Data
public class PropertyManagementDeviceVo {

    /*设备id*/
    private Long deviceId;

    /**
     * 设备编号
     */
    private String deviceNo;


    /*设备名称*/
    private String deviceName;

    /**
     * 设备版本
     */
    private String deviceVersion;


    /**
     * 描述
     */
    private String remark;


    /*出厂日期*/
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date productionDate;

    /*批次*/
    private String batch;

    /*物管编号*/
    private String managentNo;

    /*客户编号*/
    private String customerNo;


    /*出货日期*/
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date shipmentDate;


    /*初始化日期*/
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date initializeDate;


    /*机构id*/
    private Long groupId;

    /*是否绑定机构*/
    private Boolean isBindGroup=false;

    /*是否出货*/
    private Boolean isBuy=false;


    /*物管备注*/
    private String managentRemark;

    /*所购买的机构id*/
    private Long buyGroupId;

    /*机构名称*/
    private String groupName;
}
